<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" />
<title>管理导航区域</title>

<script  type="text/javascript">
var preClassName = "man_nav_1";
function list_sub_nav(Id,sortname)
{
   if(preClassName != "")
   {
      getObject(preClassName).className="bg_image";
   }
   if(getObject(Id).className == "bg_image")
   {
      getObject(Id).className="bg_image_onclick";
      preClassName = Id;
	  showInnerText(Id);
	  window.top.frames['leftFrame'].outlookbar.getbytitle(sortname);
	  window.top.frames['leftFrame'].outlookbar.getdefaultnav(sortname);
   }
}

function showInnerText(Id){
    var switchId = parseInt(Id.substring(8));
	var showText = "对不起没有信息！";
	switch(switchId){
	    case 1:
		   showText =  "欢迎使用巨石汇网站后台管理系统!";
		   break;
	    case 2:
		   showText =  "石材的管理页面!";
		   break;
	    case 3:
		   showText =  "供应商的管理页面";
		   break;		   
	    case 4:
		   showText =  "精品工程";
		   break;	
	    case 5:
		   showText =  "基本静态页";
		   break;		   		   
	}
	getObject('show_text').innerHTML = showText;
}
 //获取对象属性兼容方法
 function getObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId);
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId);
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
}

function setup()
{
	//list_sub_nav("man_nav_3", "公司管理");
	var Id = "man_nav_3";
	var sortname = "公司管理";
   if(preClassName != "")
   {
      getObject(preClassName).className="bg_image";
   }
   if(getObject(Id).className == "bg_image")
   {
      getObject(Id).className="bg_image_onclick";
      preClassName = Id;
	  showInnerText(Id);
	  //window.top.frames['leftFrame'].outlookbar.getbytitle(sortname);
	  //window.top.frames['leftFrame'].outlookbar.getdefaultnav(sortname);
   }
}
</script>
</head>
<body>
<div id="nav">
    <ul>
        <li id="man_nav_3"  class="bg_image">公司管理</li>
   </ul>
</div>
<div id="sub_info">&nbsp;&nbsp;<img src="images/hi.gif" />&nbsp;<span id="show_text">欢迎使用巨石汇网后台管理系统!</span></div>
</body>
</html>
